#ifndef __MAIN_H
#define __MAIN_H

#include "gd32f30x.h"
#include "systick.h"
#include "component.h"
#include "bsp_gpio.h"
#include "bsp_usart.h"
#include "bsp_key.h"
#include "bsp_can.h"
#include "bsp_timer.h"

#include "fonts.h"
#include "bsp_st7789v_lcd.h"

#include "iap.h"

#include "modbus.h"
#include "can_open.h"
#include "lcd_display.h"
#include "logo.h"
#include "can_open.h"
#include "bsp_iwdg.h"

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "sleep.h"

typedef enum
{
    E_IS_CAN = (uint8_t)1,
    E_IS_USART = (uint8_t)2,
    E_IS_NONE = (uint8_t)0xff
}ENUM_IAP_TYPE;

//==========产品类型识别码=======================
//产品类别识别码：
//EB16S程序更新:0xE101
//EB24S程序更新:0xE102
//ER16S程序更新:0xE103
//ER24S程序更新:0xE104
//EF100A老款程序更新:0xE105
//EF200A老款程序更新:0xE106
//EF100A一体机程序更新:0xE107
//EF200A一体机程序更新:0xE108
//4S-8S程序更新:0xE109
//显示屏程序更新：0xE10A
#define UART_PRODUCT_CLASS1  0xE1
#define UART_PRODUCT_CLASS2  0x0A

extern char *gUart_Project_Name;

#endif /* MAIN_H */
